<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--1. 引入nue.js -->
    <script src="../node_modules/vue/dist/vue.global.js"></script>
</head>
<body>
    <!--2.创建容器 -->
    <div id="app">
        <button v-on:click="count++">Count:{{count}}</button>
    </div>
    <!-- 3。创建app实例 -->
     <script>
        const{createApp} = Vue;
        createApp({
            // data:function
            data(){
                return{
                    count: 0,
            }
        }}).mount('#app');
     </script>
</body>
</html>